<?php

namespace app\common\model;

use app\common\controller\Helper;
use think\Model;

class Feedback extends Model
{
    use Helper;

    protected $table = 'feedback';

    const DEAL_NO = 0;
    const DEAL_YES = 1;

    public static function attributes($attribute, $key = null)
    {
        $list = [
            'deal_status' => [
                self::DEAL_NO => '未处理',
                self::DEAL_YES => '已处理',
            ],
        ];
        return self::attributeReturn($list, $attribute, $key);
    }
}